﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sinacor.Process.Bovespa.Negocio.Server.Communication.Translator.ProcessEntityToDataContract
{
    public class CalendarioOrdens
    {
        public Bovespa.Calendario.CalendarioOrdens.FiltroCalendarioRequest ToFiltroCalendarioRequest(ProcessEntity.Parameter.FiltroCalendario from)
        {
            Bovespa.Calendario.CalendarioOrdens.FiltroCalendarioRequest to = null;

            if (from != null)
            {
                to = new Bovespa.Calendario.CalendarioOrdens.FiltroCalendarioRequest();

                to.CodigoPraca = from.CodigoPraca;
                to.DataPregao = from.DataPregao;
                to.TipoDia = from.TipoDia;
            }

            return to;
        }
    }
}
